package com.example.lib_cache.model;

import android.util.Log;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class OrderNavItem{

    private Long passengerId;
    private Long driverId;
    private String start;
    private String end;
    private Date data;
    private Integer status;
    private Integer count;

    public String getCount() {
        return count+" 人";
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getStart() {
        return start;
    }

    public Long getPassengerId() {
        return passengerId;
    }

    public void setPassengerId(Long passengerId) {
        this.passengerId = passengerId;
    }

    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public String getData() {
        DateFormat sdf = new SimpleDateFormat("MM-dd HH:mm");
        String str = sdf.format(this.data);
        return str;
    }

    public void setData(Date data) {
        this.data = data;
    }

    public String getStatus() {
        String statusStr = "";
        switch (status){
            case 0:
                statusStr = "未出发 >";
                break;
            case 1:
                statusStr = "开始中 >";
                break;
            case 2:
                statusStr = "已抵达 >";
                break;
        }
        return statusStr;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
